package com.zhangxi.line.service;

import com.zhangxi.line.pojo.NewsHeadline;
import com.zhangxi.line.pojo.vo.HeadlineDetailVo;
import com.zhangxi.line.pojo.vo.HeadlineQueryVo;

import java.util.Map;

/**
 * ClassName: NewsHeadlineService
 * Package: com.zhangxi.line.service
 */
public interface NewsHeadlineService {
    /**
     * 分页查询头条新闻方法
     * @param headLineQueryVo
     * @return
     */
    Map<String, Object> findPage(HeadlineQueryVo headLineQueryVo);
    /**
     * 根据头条id,显示头条详情
     * @param hid
     * @return
     */
    HeadlineDetailVo findHeadlineDetail(Integer hid);
    /**
     * 新增头条
     * @param newsHeadline
     * @return
     */
    int addNewsHeadline(NewsHeadline newsHeadline);
    /**
     * 根据新闻id查询单个新闻
     * @param hid
     * @return
     */
    NewsHeadline findHeadlineByHid(Integer hid);

    /**
     * 更新新闻
     * @param newsHeadline
     * @return
     */
    int updateNewsHeadline(NewsHeadline newsHeadline);

    /**
     * 删除
     * @param hid
     * @return
     */
    int removeByHid(Integer hid);

}
